package com.dhh.web.modules.user.repo;

import com.dhh.web.modules.user.domain.User;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.Optional;

/**
 * @Auther: dhh
 * @Date: 2018/11/20 10:44
 * @Email: fzlinjianhui@163.com
 * @Description:
 */
public interface UserRepo extends JpaRepository<User,String> {

    Optional<User> findByUsername(String username);

}
